/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.res0w.SMMS.ui.login;

import com.res0w.SMMS.ui.UDResource.*;
import java.awt.Point;
import java.awt.Polygon;
import javax.swing.JWindow;

/**
 *
 * @author res0w
 * @since 2009-9-26
 * @version 0.1
 */
public class SignUpTipsWindow extends JWindow {

    private static Polygon polygon;
//    public int no;

    public SignUpTipsWindow() {
        Point[] points = new Point[]{
            new Point(1, 41),
            new Point(1, 41),
            new Point(79, 41),
            new Point(141, 0),
            new Point(114, 41),
            new Point(135, 41),
            new Point(135, 119),
            new Point(1, 119),};
        polygon = new Polygon();
        for (int i = 0; i < points.length; i++) {
            polygon.addPoint(points[i].x, points[i].y);
        }
        String imageUrl = "/com/res0w/SMMS/ui/login/SignUpTips.png";
        ImagePanel panel = new ImagePanel(imageUrl);
        this.setContentPane(panel);
        com.sun.awt.AWTUtilities.setWindowShape(this, polygon);
    /*
     *测试方法
     */    }

    public static void main(String[] args) {
        SignUpTipsWindow f = new SignUpTipsWindow();
        //    f.setLocationRelativeTo(null);
        f.setVisible(true);
        f.pack();
    }
}
